/**  
* @Title: OrderDetailModel.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年4月9日  
*/
package com.fortune.rainshinecommon.model.service;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fortune.rainshinecommon.base.BaseModel;

/**  
* @ClassName: OrderDetailModel  
* @Description: TODO(订单详情)  
* @author 张鑫
* @phone 17561783855
* @date 2019年4月9日  
*    
*/
@TableName("order_detail")
public class OrderDetailModel extends BaseModel{

	private static final long serialVersionUID = 3084468548104376891L;
	
	private int productId;//产品id
	private int quantity;//产品数量
	private String orderCode;//订单编号
	private BigDecimal productPrice;//产品单价
	private BigDecimal totalPrice;//订单总价
	
	@TableField(exist = false)
	private String productName;//产品名称
	@TableField(exist = false)
	private String stockId;//库存id


	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public String getOrderCode() {
		return orderCode;
	}
	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	public BigDecimal getProductPrice() {
		return productPrice;
	}
	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice = productPrice;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public String getStockId() {
		return stockId;
	}
	public void setStockId(String stockId) {
		this.stockId = stockId;
	}
	
}
